class CellStatusType{
    dict:any=[
        {
            statusCode: 0,
            statusName: "关闭"
        },
        {
            statusCode: 1,
            statusName: "开启"
        },
        {
            statusCode: 2,
            statusName: "删除"
        }
    ]
    dict2:any=[
        {
            statusCode: 0,
            statusName: "关闭"
        },
        {
            statusCode: 1,
            statusName: "开启"
        }
    ]
    getNameByCode(code:any){
        let status = this.dict.find((item:any)=>{
            return item.statusCode == code
        })
        if(status) return status.statusName
        return ""
    }
}

export default new CellStatusType()